.wrap {
  background-color: #fff;
  border-right: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  max-width: 450px;
  min-width: 250px;
  width: 30vw;

  & > header {
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;

    .back {
      color: #999;
      line-height: 20px;
      cursor: pointer;
      &:hover {
        color: #666;
      }
      :global(.anticon) {
        font-size: 16px;
      }
    }

    .total-count {
      color: #faad14;
    }
  }
}

.list {
  flex: 1;
  overflow-y: auto;
}

.warn-item {
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  display: flex;
  overflow: hidden;
  padding: 12px 16px;
  &:hover {
    background-color: #fafafa;
  }
}
.avatar {
  align-self: baseline;
  border-radius: 6px;
  border: 1px solid #eee;
  height: 50px;
  width: 50px;
}
.info {
  flex: 1;
  overflow: hidden;
  padding: 0 12px;
}
.name,
.owner-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}
.name .tip-name {
  color: #aaa;
  font-size: 12px;
  margin-left: 0.5em;
}
.owner-name {
  color: #2f93f1;
  font-size: 12px;
  margin-top: 5px;
}
.matches {
  color: #aaa;
  font-size: 12px;
  margin-top: 5px;
  word-break: break-all;
  word-wrap: break-word;
}
.done {
  display: flex;
  align-items: center;
  color: #999;
  padding: 12px 6px;
  transition: color 0.2s;
  &:hover {
    color: #2f93f1;
  }
  :global(.anticon) {
    font-size: 18px;
    margin-right: 4px;
  }
  :global(.anticon) + span {
    font-size: 13px;
  }
}

.warn-item.current {
  background-color: #4798ef;
  border-bottom: 1px solid #ddd;
  color: #fff;
  .name,
  .owner-name {
    color: #ccc;
  }
  .matches,
  .done {
    color: #eee;
  }
}
